/**
 * Copyright 2012 Alfredo "Rainbowbreeze" Morresi
 * 
 * This file is part of Eureka! project.
 * 
 * Eureka! is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * Eureka! is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with Eureka!. If not, see http://www.gnu.org/licenses/.
 */
package it.rainbowbreeze.eureka.logic;

import it.rainbowbreeze.eureka.common.LogFacility;
import it.rainbowbreeze.eureka.data.WebserviceManager;

/**
 * Create jobs
 * 
 * @author Alfredo "Rainbowbreeze" Morresi
 *
 */
public class JobFactory {
    // ------------------------------------------ Private Fields
    private final LogFacility mLogFacility;
    private final WebserviceManager mWebserviceManager;

    // -------------------------------------------- Constructors
    public JobFactory(
            LogFacility logFacility,
            WebserviceManager webserviceManager) {
        mLogFacility = logFacility;
        mWebserviceManager = webserviceManager;
    }

    // --------------------------------------- Public Properties

    // ------------------------------------------ Public Methods
    public DownloadQualityDataJob createDownloadQualityDataJob(
            String jobUniqueId,
            int latitude,
            int longitude,
            int radius,
            int[] measureIds) {
        return new DownloadQualityDataJob(mLogFacility, mWebserviceManager, jobUniqueId, latitude, longitude, radius, measureIds);
    }

    // ----------------------------------------- Private Methods

    // ----------------------------------------- Private Classes
}
